package com.base.service.impl;

import java.util.Date;
import java.util.List;

import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.DialsMapper;
import com.base.po.voip.Dials;
import com.base.service.DialsService;

@Service("dialsService")
public class DialsServiceImpl implements DialsService {

	@Autowired
	private DialsMapper dialsMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Dials record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(Dials record) {
		// TODO Auto-generated method stub
		return dialsMapper.insertSelective(record);
	}

	@Override
	public List<Dials> selectAll(Page page, String parentid, String username, String mobile, Byte isinsurance) {
		return dialsMapper.selectAll(page, parentid, username, mobile, isinsurance);
	}

	@Override
	public Dials selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(Dials record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Dials record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int countByDay(String pid, String sid, Date stime, Date etime) {
		return dialsMapper.countByDay(pid, sid, stime, etime);
	}

	@Override
	public int countAll(String parentid, String username, String mobile, Byte isinsurance) {
		return dialsMapper.countAll(parentid, username, mobile, isinsurance);
	}

}
